import Vue from "vue";
import App from "./App.vue";
// import "lib-flexible";
import store from "./store";
import "./registerServiceWorker";
import router from "./router";
import "./assets/font/iconfont.css";
import "./assets/css/common.css";
import "./assets/js/vant_component.js";
import { clientHeight } from "./assets/js/common.js"
import axios from "axios";
import VueAxios from "vue-axios";
import "swiper/dist/css/swiper.css";
import vueAwesomeSwiper from "vue-awesome-swiper";
import cookie from "vue-cookies";


Vue.config.productionTip = false;
Vue.prototype.$height = clientHeight;
Vue.use(VueAxios, axios);
Vue.use(vueAwesomeSwiper);
Vue.prototype.$axios = axios;
Vue.prototype.$cookie = cookie;
axios.defaults.withCredentials = true;

//该操作用来设置根Vue实例，该实例被挂载到public对应的index.html中的#app的div标签
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");